<style>
    .xh-form .btn{
        margin-right: 0px;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
    td >label{
        float: right;
        margin-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
</style>
<script>
    {% if info is defined %}
        var info = {{ info | json_encode }};
    {% else %}
        var info = null;
    {% endif %}
</script>
<form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%">
            <tr>
                <td style="width: 75px;"><label>开始时间</label></td>
                <td>
                    <input name="sStartTime" type="month" must="true">
                </td>
                <td style="width: 75px;">
                    <label>结束时间</label>
                </td>
                <td>
                    <input name="sEndTime" type="month" must="true">
                    <input name="iSEId" type="hidden">
                    <input name="sTag" type="hidden" value="{{ tag }}">
                    <input name="iStaffId" type="hidden" value="{{ staffId }}">
                </td>
            </tr>
            {% if tag == 'lean' %}
                <tr>
                    <td style="width: 75px;"><label>学校名称</label></td>
                    <td>
                        <input name="sName" type="text" must="true">
                    </td>
                    <td style="width: 75px;">
                        <label>学位</label>
                    </td>
                    <td>
                        <input name="sExtraName" type="text">
                    </td>
                </tr>
                <tr>
                    <td style="width: 75px;"><label>专业</label></td>
                    <td>
                        <input name="sMajor" type="text">
                    </td>
                    <td style="width: 75px;">
                        <label>如何获得</label>
                    </td>
                    <td>
                        <input name="mDesc" type="text" >
                    </td>
                </tr>
            {% endif %}
            {% if tag == 'work' %}
                <tr>
                    <td style="width: 75px;"><label>公司名称</label></td>
                    <td>
                        <input name="sName" type="text" must="true">
                    </td>
                    <td style="width: 75px;">
                        <label>职位</label>
                    </td>
                    <td>
                        <input name="sExtraName" type="text" must="true">
                    </td>
                </tr>
                <tr>
                    <td style="width: 75px;"><label>证明人</label></td>
                    <td>
                        <input name="sCertifier" type="text" >
                    </td>
                    <td style="width: 75px;"><label>电话</label></td>
                    <td>
                        <input name="sPhone" type="text">
                    </td>
                </tr>
                <tr>
                    <td valign="middle" style="width: 75px;">
                        <label>离职原因</label>
                    </td>
                    <td colspan="3">
                        <textarea name="mDesc" type="text" rows="3" must="true"></textarea>
                    </td>
                </tr>

            {% endif %}
            {% if tag == 'item' %}
                <tr>
                    <td style="width: 75px;"><label>项目名称</label></td>
                    <td>
                        <input name="sName" type="text" must="true">
                    </td>
                </tr>
                <tr>
                    <td valign="middle" style="width: 75px;">
                        <label>详情阐述</label>
                    </td>
                    <td colspan="3">
                        <textarea name="mDesc" type="text" rows="3" must="true"></textarea>
                    </td>
                </tr>
            {% endif %}
            {% if tag == 'contract' %}
                <tr>
                    <td style="width: 75px;"><label>合同名称</label></td>
                    <td>
                        <input name="sName" type="text" must="true">
                    </td>
                    <td style="width: 75px;"><label>合同类型</label></td>
                    <td>
                        <select name="sExtraName" type="text" must="true">
                            <option type="实习">实习</option>
                            <option type="正式">正式</option>
                            {#<option type="兼职">兼职</option>#}
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 75px;"><label>领用情况</label></td>
                    <td>
                        <select name="sMajor" type="text" must="true">
                            <option value="未领用">未领用</option>
                            <option value="已领用">已领用</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td valign="middle" style="width: 75px;">
                        <label>备注</label>
                    </td>
                    <td colspan="3">
                        <textarea name="mDesc" type="text" rows="3" placeholder="选填"></textarea>
                    </td>
                </tr>
            {% endif %}
        </table>
    </div>
</form>